package com.eva.open.sellerfeel.util;

import java.util.Calendar;

import com.eva.open.sellerfeel.enums.Week;

/**
 * 日期通用类
 * 
 * @author Evain.C
 *
 */
public class DateUntileva {
	/**
	 * 获得星期
	 * 
	 * @return
	 */
	public static Week getCurrentCnDayOfWeek() {
		final Calendar cal = Calendar.getInstance();
		final int weekNum = cal.get(Calendar.DAY_OF_WEEK);
		Week week = null;
		switch (weekNum) {
		case 0:
			week = Week.SUNDAY;
			break;
		case 1:
			week = Week.MONDAY;
			break;
		case 2:
			week = Week.TUESDAY;
			break;
		case 3:
			week = Week.WEDNESDAY;
			break;
		case 4:
			week = Week.THURSDAY;
			break;
		case 5:
			week = Week.FRIDAY;
			break;
		case 6:
			week = Week.SATURDAY;
			break;
		}
		return week;
	}
}
